@import '../../common/styles/theme/default.less';

.hr-upload {
  .hr-idcard {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 344px;

    &.idcard-front {
      background: url('./zhengmian@2x.png') no-repeat center center / 100% 100%;
    }

    &.idcard-backend {
      background: url('./fanmian@2x.png') no-repeat center center / 100% 100%;
    }

    .idcard-icon {
      position: absolute;
      width: 80px;
      height: 86px;
      margin: 0 auto;
      // background: url('./camera.png') no-repeat center center / 100% 100%;
    }
  }

  .hr-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    .hr-card-item {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      float: left;
      width: 184px;
      height: 184px;
      margin: 0 auto 15px auto;
      background-color: #000;
      border-radius: 10px;
    }

    .idcard-icon {
      position: absolute;
      width: 48px;
      height: 41px;
      margin: 0 auto;
      background: url('./camera.png') no-repeat center center / 100% 100%;
    }

    .hr-card-icon {
      position: absolute;
      top: -62px;
      right: 0;
      width: 78px;
      height: 78px;
    }
  }

  .hr-upload-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }

  .hr-upload-message {
    position: relative;
    z-index: 1;
    max-width: 80%;
    font-weight: 700;
    font-size: 30px;
    text-align: center;

    &.error {
      color: @fail-color;
    }
  }
  .hr-upload-remove-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 999;
    width: 40px;
    height: 40px;
    color: @brand-primary;
  }

  .hr-upload-progress {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;

    .ant-progress-text {
      color: #1890ff;
      font-size: 24px;
    }
  }
}

.hr-actionsheet-modal {
  .am-modal-content {
    padding: 0;
    border-radius: 3px 3px 0 0;

    .am-modal-body {
      padding: 0;
    }
  }

  .hr-actionsheet-item {
    position: relative;
    height: 100px;
    color: @font-color-primary;
    line-height: 100px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    &.delete {
      color: @fail-color;
    }
  }
}

.hr-priview-img {
  width: 100vw;
  height: 100vh;

  .am-modal-content {
    background-color: transparent;
  }

  .hr-priview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .hr-priview-img-info {
    position: absolute;
    top: 60px;
    left: 50px;
    z-index: 999;
    color: #fff;
    text-align: left;
  }

  // .hr-priview-img-close {
  //     position: absolute;
  //     right: -20px;
  //     top: -20px;
  //     width: 70px;
  //     height: 70px;
  //     z-index: 1;
  //     color: #fff;
  // }
  .am-modal-body {
    overflow: initial;
  }

  .am-modal-transparent .am-modal-content {
    padding: 0;
  }

  .am-modal-transparent .am-modal-content .am-modal-body {
    padding: 30px;
  }

  .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
  }
  .clearfix::after {
    display: block;
    clear: both;
    height: 0;
    font-size: 0;
    visibility: hidden;
    content: ' ';
  }
}

.am-accordion-content-box {
  padding: 0 !important;
  border-bottom: none !important;
  .am-accordion-content {
    overflow: visible !important;
  }  
}

.am-accordion-content-box-padding {
  padding: 32px 14px 0 14px !important;
}

